package com.cskaoyan.utils;

import com.cskaoyan.bean.Cart;
import com.cskaoyan.bean.OrderGoods;

public class BeanUtils {

    public static OrderGoods cartToOrderGoods(Cart cart){
        OrderGoods orderGoods = new OrderGoods();
        orderGoods.setGoodsId(cart.getGoodsId());
        orderGoods.setGoodsName(cart.getGoodsName());
        orderGoods.setGoodsSn(cart.getGoodsSn());
        orderGoods.setProductId(cart.getProductId());
        orderGoods.setNumber(cart.getNumber());
        orderGoods.setPrice(cart.getPrice());
        orderGoods.setSpecifications(cart.getSpecifications());
        orderGoods.setPicUrl(cart.getPicUrl());
        return orderGoods;
    }
}
